﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GameMath;

namespace Models
{
    public class Tile : GameObject
    {
        public Tile(GamePointF position, Size size)
            : base(position, size)
        {
            BackgroundColor = Color.Blue;
            BorderColor = Color.Black;

            RedrawImage();
        }

        public Color BackgroundColor { get; set; }
        public Color BorderColor { get; set; }

        public void RedrawImage()
        {
            Graphics g = Graphics.FromImage(Image);

            g.FillRectangle(new SolidBrush(BackgroundColor), new Rectangle(0, 0, Size.Width, Size.Height));
            g.DrawRectangle(new Pen(BorderColor), new Rectangle(0, 0, Size.Width, Size.Height));
        }

        public override void Update(GameTimer timer)
        {
            throw new NotImplementedException();
        }
    }
}
